import request from '@/utlis/request.js'
//获取部门
export function getSectionListApi() {
	return request.post('/dept/deptTree')
}
// 领取 借用
export function receiveAndBorrowApi(data) {
	return request.post('/shipment/add', data)
}

//获取入库出库警告信息
export function putInAndOutAndWarningApi(data) {
	return request.post('/stock/notice', data)
}

//获取入库记录列表
export function getPutInRecordListApi(data) {
	return request.post('/stock/receipt', data)
}

//根据入库记录id获取商品
export function getGoodsByRecordIdApi(data) {
	return request.post('/stock/receiptInfo', data)
}

//获取出库记录
export function getOutRecordListApi(data) {
	return request.post('/stock/shipment', data)
}

//根据出库记录id获取商品
export function getGoodsByOutRecordIdApi(data) {
	return request.post('/stock/shipmentInfo', data)
}

//获取领用记录
export function getReceiveRecordApi(data) {
	return request.post('/stock/myshipment', data)
}

//获取借用记录
export function getBorrowRecordApi(data) {
	return request.post('/stock/myback', data)
}

//获取库存预警列表
export function getInventoryWarningApi(data) {
	return request.post('/stock/warn', data)
}

//物料绑定
export function goodsBindApi(data) {
	return request.post('/goods/bind', data)
}

//物料解绑
export function goodsUnbindApi(data) {
	return request.post('/goods/unbind', data)
}

//扫码获取商品
export function getGoodsByScancodeApi(data) {
	return request.post('/goods/query', data)
}

//删除领用记录/借用记录
export function deleteRecordApi(data) {
	return request.post('shipment/remove', data)
}

//获取项目列表
export function getProjectListApi(data) {
	return request.post('project/list', data)
}